package fr.mabdylon.gamexperience.particles;

import processing.core.*;

public class Ball {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1267922472622345646L;
	public PApplet parent;
	// x : abscisse du centre
	// y : ordonnee du centre
	// r : rayon de l'ellipse
	// m : quantite de spin
	public int x, y, r;
	public float m;

	// Processing gere les couleurs comme des int
	// t : type => Matiere, antimatiere, neutrino, trou noir, player
	public int t;

	// default constructor
	public Ball(PApplet parent, int t) {
		this.parent = parent;
		this.t = t;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public int getR() {
		return r;
	}

	public void setX(int x) {
		this.x = x;
	}

	public void setY(int y) {
		this.y = y;
	}

	public void setR(int r) {
		this.r = r;
	}

	public void setType(int t) {
		this.t = t;
	}

	public int getType() {
		return t;
	}

	public Ball(PApplet parent, int x, int y, int r, int t) {
		this.parent = parent;
		this.x = x;
		this.y = y;
		this.r = r;
		m = r * .1f;
		this.t = t;
	}

}
